package com.kevin.thread;

import java.util.concurrent.*;

public class NewScheduleThreadPoolTest {
    public static void main(String[] args) throws ExecutionException, InterruptedException {
        ScheduledExecutorService scheduledExecutorService = Executors.newScheduledThreadPool(2);
        ScheduledFuture<String> schedule = scheduledExecutorService.schedule(new MyThread1(), 60L, TimeUnit.SECONDS);
        System.out.println(schedule.get());
    }
}
